package com.ys.dubbo.cloud.rest.provider;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

@SpringBootApplication
@EnableDiscoveryClient
public class SpringCloudDubboRestProviderApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringCloudDubboRestProviderApplication.class, args);

//        new SpringApplicationBuilder()
//                .web(WebApplicationType.NONE)//非web应用
//                .run(args);
    }


}
